package com.dayuanit.dy11.mall.mallspringboot.mapper;

import com.dayuanit.dy11.mall.mallspringboot.entity.Commodity;
import com.dayuanit.dy11.mall.mallspringboot.entity.CommodityWithBLOBs;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommodityMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(CommodityWithBLOBs record);

    int insertSelective(CommodityWithBLOBs record);

    CommodityWithBLOBs selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CommodityWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(CommodityWithBLOBs record);

    int updateByPrimaryKey(Commodity record);

    List<Commodity> listHomeCommos(@Param("parentCatalog") String parentCatalog);
}